package com.esm.serviceimpl;

import com.esm.dao.AttendDao;
import com.esm.daoimpl.AttendDaoImpl;
import com.esm.service.AttendService;

import net.sf.json.JSONArray;

/**
 * AttendServiceImpl
 * 出勤服务实现类
 * @author 魏长均
 *
 */
public class AttendServiceImpl implements AttendService
{
	AttendDao adao = new AttendDaoImpl();
	public JSONArray getCurrentYearOTimeDefaultLoad(String state_zxk,int currentYear,int page,int pageSize) 
	{
		return adao.findCurrentOTimeDefaultLoad(state_zxk, currentYear,page,pageSize);
	}
	public int getOtimeTotalRows(String state_zxk, int currentYear) 
	{
		return adao.findOtimeTotalRows(state_zxk, currentYear);
	}
	public JSONArray getSelectYearOTimeLoad(String state_zxk, int selectYear, int page, int pageSize) 
	{
		return adao.findSelectYearOTimeLoad(state_zxk, selectYear, page, pageSize);
	}
	public JSONArray getYrMthOTimeLoad(String state_zxk, int selectYear, int selectMonth, int page, int pageSize) 
	{
		return adao.findYrMthOTimeLoad(state_zxk, selectYear, selectMonth,  page, pageSize);
	}
	public JSONArray getYrMthDayOTimeLoad(String state_zxk, int selectYear, int selectMonth, int selectDay, int page,
			int pageSize) 
	{
		return adao.findYrMthDayOTimeLoad(state_zxk, selectYear, selectMonth, selectDay, page, pageSize);
	}
	public int getSelectYearOtimeTotalRows(String state_zxk, int selectYear) 
	{
		return adao.findSelectYearOtimeTotalRows(state_zxk, selectYear);
	}
	public int getYrMthOtimeTotalRows(String state_zxk, int selectYear, int selectMonth) 
	{
		return adao.findYrMthOtimeTotalRows(state_zxk, selectYear, selectMonth);
	}
	public int getYrMthDayOtimeTotalRows(String state_zxk, int selectYear, int selectMonth, int selectDay) 
	{
		return adao.findYrMthDayOtimeTotalRows(state_zxk, selectYear, selectMonth, selectDay);
	}
	public JSONArray getSelectDeptYearOTimeLoad(String state_zxk, int selectYear, int dep_id, int page, int pageSize) 
	{
		return adao.findSelectDeptYearOTimeLoad(state_zxk, selectYear, dep_id, page, pageSize);
	}
	public JSONArray getDeptYrMthOTimeLoad(String state_zxk, int selectYear, int selectMonth, int dep_id, int page,
			int pageSize) 
	{
		return adao.findDeptYrMthOTimeLoad(state_zxk, selectYear, selectMonth, dep_id, page, pageSize);
	}
	public JSONArray getDeptYrMthDayOTimeLoad(String state_zxk, int selectYear, int selectMonth, int selectDay, int dep_id,
			int page, int pageSize) 
	{
		return adao.findDeptYrMthDayOTimeLoad(state_zxk, selectYear, selectMonth, selectDay, dep_id, page, pageSize);
	}
	public int getSelectDeptYearOtimeTotalRows(String state_zxk, int selectYear, int dep_id) 
	{
		return adao.findSelectDeptYearOtimeTotalRows(state_zxk, selectYear, dep_id);
	}
	public int getDeptYrMthOtimeTotalRows(String state_zxk, int selectYear, int selectMonth, int dep_id) 
	{
		return adao.findDeptYrMthOtimeTotalRows(state_zxk, selectYear, selectMonth, dep_id);
	}
	public int getDeptYrMthDayOtimeTotalRows(String state_zxk, int selectYear, int selectMonth, int selectDay,
			int dep_id) 
	{
		return adao.findDeptYrMthDayOtimeTotalRows(state_zxk, selectYear, selectMonth, selectDay, dep_id);
	}
	public JSONArray getSelectDempYearOTimeLoad(String state_zxk, int selectYear, int uid, int page, int pageSize) 
	{
		return adao.findSelectDempYearOTimeLoad(state_zxk, selectYear, uid, page, pageSize);
	}
	public JSONArray getDempYrMthOTimeLoad(String state_zxk, int selectYear, int selectMonth, int uid, int page,
			int pageSize) 
	{
		return adao.findDempYrMthOTimeLoad(state_zxk, selectYear, selectMonth, uid, page, pageSize);
	}
	public JSONArray getDempYrMthDayOTimeLoad(String state_zxk, int selectYear, int selectMonth, int selectDay, int uid,
			int page, int pageSize) 
	{
		return adao.findDempYrMthDayOTimeLoad(state_zxk, selectYear, selectMonth, selectDay, uid, page, pageSize);
	}
	public int getSelectDempYearOtimeTotalRows(String state_zxk, int selectYear, int uid) 
	{
		return adao.findSelectDempYearOtimeTotalRows(state_zxk, selectYear, uid);
	}
	public int getDempYrMthOtimeTotalRows(String state_zxk, int selectYear, int selectMonth, int uid) 
	{
		return adao.findDempYrMthOtimeTotalRows(state_zxk, selectYear, selectMonth, uid);
	}
	public int getDempYrMthDayOtimeTotalRows(String state_zxk, int selectYear, int selectMonth, int selectDay,
			int uid) 
	{
		return adao.findDempYrMthDayOtimeTotalRows(state_zxk, selectYear, selectMonth, selectDay, uid);
	}
	
}
